﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DLL;

namespace BLL
{
    public class BillDetailService
    {
        private BillDetailRepo m_Repo;

        public BillDetailService()
        {
            m_Repo = new BillDetailRepo();
        }

        public void Add(BillDetail billDetail)
        {
            m_Repo.Add(billDetail);
        }

        public void Update(BillDetail billDetail)
        {
            m_Repo.Update(billDetail);
        }

        public List<BillDetail> GetOfBill(int billId)
        {
            return m_Repo.GetOfBill(billId);
        }

        public List<pGetBIllDetailByBillId_Result> GetBillDetailByBillId(int billId)
        {
            return m_Repo.GetBillDetailByBillId(billId);
        }

        public void Delete(int billDetailId)
        {
            m_Repo.Delete(billDetailId);
        }
    }
}
